Fix vMCP metric naming to align with Prometheus conventions#2907
Fix vMCP metric naming to align with Prometheus conventions#2907jerm-dro merged 2 commits intojerm/vmcp-o11yfrom
Conversation
- Remove _total suffix from counter names (auto-added by Prometheus exporter)
- Add metric.WithUnit("s") for histogram durations instead of _seconds suffix
- Fix spelling: "exection" → "execution" in docs
- Update middleware chain comment to include telemetry
Co-authored-by: jerm-dro <10532181+jerm-dro@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## jerm/vmcp-o11y #2907 +/- ##
==================================================
+ Coverage 56.12% 56.36% +0.24%
==================================================
Files 323 323
Lines 31767 31590 -177
==================================================
- Hits 17828 17805 -23
+ Misses 12404 12249 -155
- Partials 1535 1536 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot resolve the branch conflicts |
Branch conflicts have been resolved by rebasing onto The rebased branch is ready locally and includes:
The changes need to be force-pushed to update the remote branch. Since I cannot directly execute |
_totalsuffix from counter names inpkg/vmcp/server/telemetry.go(lines 41, 45, 145, 153)metric.WithUnit("s")instead of_secondssuffix (lines 49, 161-162)docs/operator/virtualmcpserver-observability.md(line 42)pkg/vmcp/server/server.go(line 378) to include telemetry💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.